package com.yc.mvplib.Basis;

/**
 * Created by lenovo on 2017/12/4.
 */

public abstract class BasisPresenter<M, T> {
    public M mModel;
    public T mView;
    public void attachVM(T v, M m) {
        this.mView = v;
        this.mModel = m;
        this.onStart();
    }

    public void detachVM() {
        mView = null;
        mModel = null;
    }

    public abstract void onStart();

}
